<?php
declare (strict_types=1);

namespace app\api\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Category extends Model
{
    protected $table = 'pyg_category';
    protected $pk = 'id';

    public static function getCategory()
    {
        return self::select();
    }

    public static function findCategory($id)
    {
        return self::find($id);
    }

}
